package com.kins.so.knowledgebase.mapper;

import com.kins.so.knowledgebase.entity.RagflowLibrary;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: 申科
 * @Date:2025/11/12 16:26
 */

public interface RagflowLibraryMapper {
    List<RagflowLibrary> findListByPermissions(RagflowLibrary param);

    List<RagflowLibrary> findRagLibList(Map<String, Object> paramMap);

    int insert(RagflowLibrary param);

    int update(RagflowLibrary param);

    RagflowLibrary getInfoById(RagflowLibrary param);

    void deleteByLibraryId(@Param("libraryId") String libraryId);

    RagflowLibrary getInfoByCustInfo(RagflowLibrary library);

    List<RagflowLibrary> findListByTypeCode(@Param("typeCode") String typeCode,@Param("orgCode")String orgCode);

}
